home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / 525td.zip / SAMPLE1.BAT < prev    next >
DOS Batch File  |  1992-03-10  |  2KB  |  84 lines

  1. echo off
  2. cls
  3. echo.
  4. echo.
  5. echo           SAMPLE1.BAT
  6. echo.
  7. echo.
  8.  
  9. rem
  10. rem
  11. rem   This batch file demonstrates how a batch file can be used to
  12. rem   perform TAPE commands which backup two drives, C: and D:.
  13. rem
  14. rem   The most basic command parameter operations for TAPE SBK used
  15. rem   in this batch file are:
  16. rem     
  17. rem     \/S = Backup all files starting at root and 
  18. rem           include all subdirectories.
  19. rem
  20. rem     /V  = After backup, read files from tape and disk, and verify them.
  21. rem
  22. rem     /C  = Do not pause for the Overwrite warning.
  23. rem
  24. rem     /L  = Assign a unique label for volume searching.
  25. rem
  26. rem     /A  = Append this volume to the end of recorded data 
  27. rem           currently on tape.
  28. rem
  29. rem   For more detailed information on these and other TAPE options, refer
  30. rem   to your software user's guide.
  31. rem
  32. rem   If operating with Networks, it is recommended that you review the
  33. rem   more advanced SAMPLE2.BAT batch file.
  34. rem
  35.  
  36. rem
  37. rem   First, before we start the backup, let's retension the tape.
  38. rem   This is highly recommended before you start any tape operations.
  39. rem
  40. rem   NOTE: The retension command is not necessary for the 1200 
  41. rem   series drives and is therefore an unavailable option.
  42.  
  43. TAPE UTL T
  44.  
  45. rem
  46. rem   Lets begin the first backup, which backs up the C: drive and
  47. rem   overwrites existing data on the tape (-A = don't append).
  48. rem
  49. TAPE SBK C:\/S /V /C /LDrive C: /-A
  50.  
  51. rem
  52. rem   OK, now lets do the second backup which backs up the D: drive and
  53. rem   appends it behind the C: drives data on tape.
  54. rem 
  55.  
  56. TAPE SBK D:\/S /V /C /LDrive D: /A
  57.  
  58. rem
  59. rem          Using SAMPLE1.BAT with the Automatic backup utilities
  60. rem          AUTOSET and AUTORUN.
  61. rem
  62. rem   If you wished to use AUTORUN to perform this backup batch file each
  63. rem   night, perform the following steps:
  64. rem
  65. rem   1)  Run the AUTOSET utility and setup the days of the week the 
  66. rem       and the time of the day the batch file should be run.
  67. rem
  68. rem       On the Command Line field, enter SAMPLE1.
  69. rem
  70. rem   2)  Modify your AUTOEXEC.BAT file and add AUTORUN.
  71. rem
  72. rem   Now, each time you turn on your computer, AUTORUN will load and
  73. rem   will execute SAMPLE1 on the days and time entered in AUTOSET.
  74. rem
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83. 
  84.